<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css/home.css" />
<script type="text/javascript" src="js/home.js"></script>
</head>

<body onload="startdate(),startTime()">
<div id="main_container">

	<div id="header" >

       <div class="top_right">
       
            <div class="weather">
              <div class="weather_text" id="date"></div>
              <div class="weather_text" id="time"></div>
              <div class="weather_img">
              <a href="#"><img src="image/life.jpg" border="0" width="60" height="60"/></a></div>
            </div>
            
            <div class="big_banner">
            <a href="#"><img src="image/life.jpg" border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/love.jpg"  border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/reading.jpg" border="0" width="180" height="100"/></a>
         </div>
        
        </div>
    
  
        <div id="logo">
            <a href="index.html"><img src="image/logo.png" alt="" title="" border="0" width="240" height="125" /></a>
	    </div>
        

        

    </div>
    
   <div id="main_content"> 
   
            <div id="menu_tab">
                    <ul id="menu">
                    	<li><a href="home.php">首 页</a></li>
                        <li><a href="#">热 门  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="hotpeople.php">微博达人</a></li>
        						<li><a href="hotweibo.php">热门微博</a></li>
      						</ul>
                      </li>
                         <li><a href="#">应 用 <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="photo.php">相册</a></li>
        						<li><a href="collection.php">收藏</a></li>
                                <li><a href="find.php">找人</a></li>
        						<li><a href="#">我的课表</a></li>
        						<li><a href="#">公文通</a></li>
      						</ul>
                         </li>                                                   
                         <li><a href="my_weibo.php">我的主页</a></li>

                         <li><a href="#">消 息  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="comment.php">查看评论</a></li>
        						<li><a href="cencerns_from.php">查看粉丝</a></li>
        						<li><a href="my_concerns.php">查看关注</a></li>
      						</ul>
                         </li>                     
                         <li><a href="#">帐 号  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="account_info">帐号设置</a></li>
        						<li><a href="logout.php">注销</a></li>
      						</ul>
                         </li>
                         
                    </ul>

            </div><!-- end of menu tab -->
            
    
    <div class="left_content">
     <div class="title_box">我的头像</div>  
     <div class="border_box">
         <div class="user_img"><a href="details.html"><img src="<?php 
							/*用以输出用户端的头像*/
							include_once 'sql_connect.php'; 
    						include_once 'msg_redirect.php';
    						$u_no = $_COOKIE['u_no'];
    						$show_head_sql = mysql_query("select h_data from head where u_no='$u_no'",$connection);
    						$show_head_result = mysql_fetch_array($show_head_sql);
    						$my_data = $show_head_result[h_data];
    						if (!$my_data){
    							echo "head_image/09.jpg";
    						}
    						else echo "$my_data";
    						?>" width="150" height="150" /></a></div>
         <div class="button_box">
         <div class="button"><a href="my_concerns.php">关注<?php
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
  
                            $u_no = $_COOKIE['u_no'];
    						$show_sql = mysql_query("select max(c_num) from concerns where u_no='$u_no'",$connection);
    						$show_result = mysql_fetch_array($show_sql);
    						$my_data = $show_result[0];   						
    						echo "$my_data";
    						  ?></a></div>
         <div class="button"><a href="cencerns_from.php">粉丝<?php
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
  
                            $u_no = $_COOKIE['u_no'];
    						$show_sql = mysql_query("select max(f_num) from concerns where c_no='$u_no'",$connection);
    						$show_result = mysql_fetch_array($show_sql);
    						$my_data = $show_result[0];   						
    						echo "$my_data";
    						  ?></a></div>
         <div class="button"><a href="my_weibo.php">微博<?php
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
  
                            $u_no = $_COOKIE['u_no'];
    						$show_sql = mysql_query("select max(w_num) from weibo where u_no='$u_no'",$connection);
    						$show_result = mysql_fetch_array($show_sql);
    						$my_data = $show_result[0];   						
    						echo "$my_data";
    						  ?></a></div>
         </div>
     </div> 
     
     <div class="title_box">关于我</div>
    
        <ul class="left_menu">
        <li class="odd"><a href="my_weibo.php">我的微博</a></li>
        <li class="even"><a href="my_account.php">个人资料</a></li>
         <li class="odd"><a href="my_concerns.php">关注</a></li>
        <li class="even"><a href="cencerns_from.php">粉丝</a></li>
         <li class="odd"><a href="collection.php">收藏</a></li>
         <li class="even"><a href="photo.php">相册</a></li>
        </ul> 
             
     
     <div class="title_box">待增加区域</div>
     <div class="banner_adds">
       
       <a href="#"><img src="image/reading.jpg" alt="" title="" border="0" height="180" width="100"/></a>
     </div>    
        
    
   </div><!-- end of left content --> 



   <div class="center_content">
   	<div class="center_title_bar">个人资料</div>
	  	<div class="user_name">昵称：<?php 
                           /*显示昵称*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_name from user_info where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
        <div class="user_button"><a href="account_info.php">修改</a></div>
        <div class="user_info">真实姓名：<?php 
                           /*显示真实姓名*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_truename from user_detail where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
        <div class="user_info">学院：<?php 
                           /*显示学院*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_dept from user_detail where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
   		<div class="user_info">生日：<?php 
                           /*显示生日*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_year,u_month,u_day from user_detail where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						//$user_data = $user_result[0];   						
    						echo "$user_result[u_year]".'年'."$user_result[u_month]".'月'."$user_result[u_day]".'日';
    						?></div>
   		<div class="user_info">邮箱：<?php 
                           /*显示邮箱*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_email from user_info where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
        <div class="user_info">QQ：<?php 
                           /*显示QQ*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_qq from user_detail where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
        <div class="user_info">简介：<?php 
                           /*显示简介*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $u_no = $_COOKIE['u_no'];
    						$user_sql = mysql_query("select u_mydesc from user_detail where u_no='$u_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></div>
    
    
   </div><!-- end of center content -->



 <div class="right_content">
 
     <div class="title_box">搜索感兴趣的</div>  
     <div class="border_box">
		<input type="text" name="searchinfo" class="searchinfo_input" value="找微博,找人"/>
        <a href="#" class="search">搜索&gt;&gt;</a>
     </div>  
     

     
 
	<div class="people_box">
        	<div class="title_box">我的关注</div>
            <div class="icon_box">
            <?php 
    /*循环输出concerns表中关注者内容*/
    include_once 'sql_connect.php'; 
    include_once 'msg_redirect.php';
	$u_no = $_COOKIE['u_no'];
    
    $concerns_sql = mysql_query("SELECT c_no FROM concerns WHERE u_no='$u_no' AND c_no NOT IN('$u_no')  LIMIT 0,9",$connection);
		
    $concerns_result = mysql_fetch_array($concerns_sql);
    if($concerns_result){
    do{
    ?>
            
            <div class="people_icon"><a href="#" title=""><img src="<?php 
							/*用以输出用户端的头像*/
							include_once 'sql_connect.php'; 
    						include_once 'msg_redirect.php';
    						$c_no = $concerns_result[0];
    						$show_head_sql = mysql_query("select h_data from head where u_no='$c_no'",$connection);
    						$show_head_result = mysql_fetch_array($show_head_sql);
    						$my_data = $show_head_result[h_data];
    						if (!$my_data){
    							echo "head_image/09.jpg";
    						}
    						else echo "$my_data";
    						?>" alt="" title="" width="40" height="40" border="0" /><?php 
                           /*显示昵称*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $c_no = $concerns_result[0];
    						$user_sql = mysql_query("select u_name from user_info where u_no='$c_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></a></div>
    						
    						<?php 
                             }while ($concerns_result = mysql_fetch_array($concerns_sql));}
	                        ?>
            </div>
            <a href="my_concerns.php" class="more">更多&gt;&gt;</a>
                 
      </div>
   
   <div class="people_box">
     		<div class="title_box">我的粉丝</div>
            <div class="icon_box"> 
     <?php 
    /*循环输出concerns表中粉丝内容*/
    include_once 'sql_connect.php'; 
    include_once 'msg_redirect.php';
	$u_no = $_COOKIE['u_no'];
    
    $concerns_sql = mysql_query("SELECT u_no FROM concerns WHERE c_no='$u_no' AND u_no NOT IN('$u_no') LIMIT 0,9 ",$connection);
		
    $concerns_result = mysql_fetch_array($concerns_sql);
    if($concerns_result){
    	
    do{
    ?>
              
     		<div class="people_icon"><a href="#" title=""><img src="<?php 
							/*用以输出用户端的头像*/
							include_once 'sql_connect.php'; 
    						include_once 'msg_redirect.php';
    						$f_no = $concerns_result[0];
    						$show_head_sql = mysql_query("select h_data from head where u_no='$f_no'",$connection);
    						$show_head_result = mysql_fetch_array($show_head_sql);
    						$my_data = $show_head_result[h_data];
    						if (!$my_data){
    							echo "head_image/09.jpg";
    						}
    						else echo "$my_data";
    						?>" alt="" title="" width="40" height="40" border="0" /><?php 
                           /*显示昵称*/
                           include_once("sql_connect.php");
                           include_once("msg_redirect.php");
                   
                            $f_no = $concerns_result[0];
    						$user_sql = mysql_query("select u_name from user_info where u_no='$f_no'",$connection);
    						$user_result = mysql_fetch_array($user_sql);
    						$user_data = $user_result[0];   						
    						echo "$user_data";
    						?></a></div><?php 
    }while ($concerns_result = mysql_fetch_array($concerns_sql));}
	?>
            </div>
            <a href="cencerns_from.php" class="more">更多&gt;&gt;</a>
                 
     </div>  
     
     
     
    <div class="title_box">我的课表</div>
          
     
     <div class="banner_adds">
     
     <a href="#"><img src="image/09.jpg" alt="" title="" border="0" height="180" width="120"/></a>
     </div>        
     
   </div><!-- end of right content -->   


            
   </div><!-- end of main content -->
   
   
   
   <div class="footer">深圳大学计算机与软件学院@毕业设计项目网站<br />指导老师：王华明<br />项目负责：陈作鑫<br />
    小组成员：陈作鑫&nbsp;&nbsp;陈志杰&nbsp;&nbsp;赖晓东
   </div>                 


</div>
</body>
</html>